<!--- ==================================================
NAME:	get_aging.cfm
DESC:	This file calls the getCustomerAging post through XI
        to obtain Customer AR information.
=================================================== --->
<cfsetting enablecfoutputonly="yes">

<!--- default data --->
<cfparam name="arguments.customerid">
<cfparam name="arguments.ptage1">
<cfparam name="arguments.ptage2" default="">
<cfparam name="arguments.ptage3" default="">
<cfparam name="arguments.ptage4" default="">
<cfparam name="arguments.ptage5" default="">
<cfparam name="arguments.ptage6" default="">

<!--- build xml statement --->
<cfscript>
	xi_namespace='#trim(application.xi_namespace)#:CUSTOMER:GetCustomerAging';
	xi_interface='GetCusomterAging_OB';
	xml = '<xtiinput>
		<inputheader>
			<actionset>
				<action>get_customer_aging</action>
			</actionset>
		</inputheader>
		<inputdata>
			<customerid>#arguments.customerid#</customerid>
			<ptage1>#arguments.ptage1#</ptage1>
			<ptage2>#arguments.ptage2#</ptage2>
			<ptage3>#arguments.ptage3#</ptage3>
			<ptage4>#arguments.ptage4#</ptage4>
			<ptage5>#arguments.ptage5#</ptage5>
			<ptage6>#arguments.ptage6#</ptage6>
		</inputdata>
	</xtiinput>';
</cfscript>